package cn.tedu.yushouge.pet.adopt.service;

import cn.tedu.yushouge.commons.pojo.vo.PageData;
import cn.tedu.yushouge.pet.adopt.pojo.param.PetAddNewParam;
import cn.tedu.yushouge.pet.adopt.pojo.param.PetAddNewParamOfString;
import cn.tedu.yushouge.pet.adopt.pojo.param.PetUpdateInfoParam;
import cn.tedu.yushouge.pet.adopt.pojo.vo.PetListItemVO;
import cn.tedu.yushouge.pet.adopt.pojo.vo.PetStandardVO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IPetService {

    void addNew(PetAddNewParamOfString petAddNewParamOfString);

    void deleteById(Long id);

    void updateInfoById(Long id, PetUpdateInfoParam petUpdateInfoParam);

    PetStandardVO getStandardById(Long id);

    PageData<PetListItemVO> list(Integer pageNum);

    PageData<PetListItemVO> list(Integer pageNum,Integer pageSize);

}
